package com.example.friend.controller;

import com.example.common.message.service.AliSmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述:
 *
 * @author Lenovo
 * @date 2025/3/27
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private AliSmsService aliSmsService;

    @RequestMapping("/send")
    public void test(String phone,String code,Long time){
        aliSmsService.sendMobileCode(phone, code,time);
    }
}
